/**
 * *************************************
 * Copyright(c)2016 Dingdang Yixia 
 * All Rights Reserved.
 *
 * @File: OrderMapper.java
 * @Package: com.ddyx.mapper
 * @Description:
 * 
 * @Version: V1.0
 * @Author: Yidong.Xiang
 * @Date: 2018年8月23日 下午5:08:20
 * 
 * *************************************
 */
package com.ddyx.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ddyx.entity.Order;
import com.ddyx.model.domain.OrderDetails;
import com.ddyx.model.domain.OrderInfo;
import com.ddyx.model.domain.RefundStatus;

import tk.mybatis.mapper.common.Mapper;

/**
 * @ClassName: OrderMapper.java
 * @Module: 
 * @Description: 
 * 
 * @author: Yidong.Xiang
 * @date: 2018年8月23日 下午5:08:20
 * 
 */
public interface OrderMapper extends Mapper<Order> {

	int countOrder(@Param("orderStatus") String orderStatus
			,@Param("orderId") String platOrderNo
			,@Param("startTime") String startTime
			,@Param("endTime") String endTime
			,@Param("timeType") String timeType);
	
	List<OrderInfo> getOrder(@Param("orderStatus") String orderStatus
			,@Param("orderId") String platOrderNo
			,@Param("startTime") String startTime
			,@Param("endTime") String endTime
			,@Param("timeType") String timeType
			,@Param("start") int start
			,@Param("size") int size);
	
	List<OrderDetails> getOrderDetails(@Param("orderId") String orderId);
	
	List<RefundStatus> getRefundStatus(@Param("orderId") String orderId);
	
	int updateOrderRemark(@Param("orderId") String orderId,@Param("remark") String remark);
	int updateLogisticStatus(@Param("orderId") String orderId,@Param("logisticStatus") String logisticStatus );
	int updateOrderShippedQty(@Param("orderId") String orderId);
}
